package com.esgov.chatbot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.esgov.chatbot.dao.TProWoFormDao;
import com.esgov.chatbot.entity.TProWoForm;
import com.esgov.chatbot.service.TProWoFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 工单服务实现类
 */
@Service
public class TProWoFormServiceImpl extends ServiceImpl<TProWoFormDao, TProWoForm> implements TProWoFormService {
    
    @Autowired
    private TProWoFormDao workOrderDao;

    @Override
    public long countAllWorkOrders() {
        return this.count();
    }
    
    @Override
    public long countByLabelNotNull() {
        return workOrderDao.countByLabelNotNull();
    }
    
    @Override
    public long countBySupervisionWarning() {
        return workOrderDao.countBySupervisionWarning();
    }
    
    @Override
    public List<Map<String, Object>> countByAreaGroup() {
        return workOrderDao.countByAreaGroup();
    }
    
    @Override
    public List<Map<String, Object>> countByTitleGroup() {
        return workOrderDao.countByTitleGroup();
    }
    
    @Override
    public List<Map<String, Object>> countByActNameGroup() {
        return workOrderDao.countByActNameGroup();
    }
}